import request from '@/utils/request'

// 查询患者医保--审核列表
export function listAudit(query) {
  return request({
    url: '/audit/audit/list',
    method: 'get',
    params: query
  })
}


export function countAudit() {
  return request({
    url: '/audit/audit/count',
    method: 'get',
  })
}


export function getGainAudit() {
  return request({
    url: '/audit/audit/gain',
    method: 'get',
  })
}

// 查询患者医保--审核详细
export function getAudit(id) {
  return request({
    url: '/audit/audit/' + id,
    method: 'get'
  })
}

// 新增患者医保--审核
export function addAudit(data) {
  return request({
    url: '/audit/audit',
    method: 'post',
    data: data
  })
}

// 修改患者医保--审核
export function updateAudit(data) {
  return request({
    url: '/audit/audit',
    method: 'put',
    data: data
  })
}

// 患者医保--审核不通过
export function rejectAudit(id,remark) {
  return request({
    url: '/audit/audit/reject/ids/' + id+'/remark/'+ remark,
    method: 'get'
  })
}


// 删除患者医保--审核通过
export function passesAudit(id) {
  return request({
    url: '/audit/audit/passes/' + id,
    method: 'get'
  })
}



// 查询患者信息详细
export function getExaminationAudit(id) {
  return request({
    url: '/audit/audit/' + id,
    method: 'get'
  })
}


// 查询患者pdf
export function getPdfAudit(id) {
  return request({
    url: '/audit/audit/pdf/' + id,
    method: 'get'
  })
}

// 查询患者pdf
export function getPdfFromSqlSeverAudit(id) {
  return request({
    url: '/audit/audit/sqlSeverPdf/' + id,
    method: 'get'
  })
}
